/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package BusinessLogic;

import DataAccess.SalesManagerFunction_DA;
import javax.swing.table.TableModel;

/**
 *
 * @author thangvv0907i
 */
public class SalesManagerFunction_BL {

    public TableModel getModelTable_BL(int numberFilter) {
        TableModel tbm=null;
        if(numberFilter==1)
        {
             tbm = new SalesManagerFunction_DA().modelViewBillsCancel_DA();
        }
        else if(numberFilter==2 )
        {
            tbm = new SalesManagerFunction_DA().modelViewBills_DA();
        }
        else if (numberFilter==3)
        {
            tbm = new SalesManagerFunction_DA().modelViewMoney();
        }else if(numberFilter==4)
        {
            tbm = new SalesManagerFunction_DA().modelViewItemsNotAvariable();
        }else
        {
            tbm = new SalesManagerFunction_DA().modelViewItemsCancel();
        }
        
        return tbm;
    }

}
